<div class="container">
    <div class="row">
        <div class="col-sm-6 col-sm-offset-3">
            <?php $form = $this->beginWidget('CActiveForm', array('id' => 'send-inner-form')); ?>
            <div class="form-group">
                <?php echo $form->labelEx($model, 'title'); ?>
                <?php echo $form->textField($model, 'title', array('class' => 'form-control')) ?>
                <?php echo $form->error($model, 'title') ?>
            </div>
            <div class="form-group">
                <?php echo $form->labelEx($model, 'receiver_name'); ?>
                <?php echo $form->textField($model, 'receiver_name', array('class' => 'form-control')) ?>
                <?php echo $form->error($model, 'receiver_name') ?>
            </div>
                <div class="form-group ">
                    <?php echo $form->labelEx($model, 'receiver_address'); ?>
                    <?php echo $form->textField($model, 'receiver_address', array('class' => 'form-control')) ?>
                    <?php echo $form->error($model, 'receiver_address') ?>
                </div>
                <div class="form-group">
                    <?php echo $form->labelEx($model, 'receiver_account'); ?>
                    <?php echo $form->textField($model, 'receiver_account', array('class' => 'form-control')) ?>
                    <?php echo $form->error($model, 'receiver_account') ?>
                </div>
            <div class="form-group">
                <?php echo $form->labelEx($model, 'amount'); ?>
                <?php echo $form->textField($model, 'amount', array('class' => 'form-control')) ?>
                <?php echo $form->error($model, 'amount') ?>
            </div>
            <?php if(count($cashes) >0){ ?>
            <div class="form-group">
                <?php echo $form->labelEx($model, 'cash_id'); ?>
                <?php echo $form->dropDownList($model,'cash_id',CHtml::listData($cashes,'id_waluty','skrot'), array('class' => 'form-control', 'select'=>'1')); ?>
                <?php echo $form->error($model, 'cash_id') ?>
            </div>
            <?php } ?>
            <?php echo CHtml::submitButton('Wykonaj przelew', array('class' => 'btn btn-danger')); ?>
            <?php $this->endWidget(); ?>
        </div>
    </div>
</div>

